package com.taotao.admin;

import com.rop.MessageFormat;

public class MyRopClient {
    //TODO: appKey应该由前端传递过来
    public static final String APP_ID = "woshimorendeappid123";
    private static final String APP_SECRET = "4ff95c132f05d3107943ee1ad17ec453";
//    public static final String BASE_URL = "http://103.227.80.253";
//    public static final String BASE_URL = "http://localhost:8080";
    public static final String BASE_URL = "http://www.wxtcinfor.com";
    private static final String SERVER_URL = BASE_URL + "/router";
    private static DefaultRopClient ropClient = new DefaultRopClient(SERVER_URL, APP_ID, APP_SECRET, MessageFormat.json);
    public static DefaultRopClient getRopClient(String sessionId) {
        ropClient.setSessionId(sessionId);
        return ropClient;
    }
}
